home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / streaming / qtstreammsg / qtstreammsg.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.0 KB  |  52 lines

  1. //////////
  2. //
  3. //    File:        QTStreamMsg.h
  4. //
  5. //    Contains:    Sample code for intercepting and issuing messages to the streaming controller bar.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         06/11/99    rtm        first file
  14. //     
  15. //////////
  16.  
  17. #ifndef __MOVIES__
  18. #include <Movies.h>
  19. #endif
  20.  
  21. #include <stdlib.h>
  22. #include <string.h>
  23.  
  24.  
  25. //////////
  26. //
  27. // constants
  28. //
  29. //////////
  30.  
  31. #define MESSAGE_ARRAY        {                                    \
  32.                                 "Establishing connection",        \
  33.                                 "Talking to server",            \
  34.                                 "Filling buffer"                \
  35.                             }
  36.  
  37. #define kConnectingMsgIndex        0
  38. #define kNegotiatingMsgIndex    1
  39. #define kBufferingMsgIndex        2
  40.  
  41. #define kMaxMessageSize            256            // largest streaming message we expect to receive
  42.  
  43.  
  44. //////////
  45. //
  46. // function prototypes
  47. //
  48. //////////
  49.  
  50. void                            QTStreamMsg_IssueMessage (MovieController theMC, char *theMessage);
  51. PASCAL_RTN Boolean                QTStreamMsg_ActionFilterProc (MovieController theMC, short theAction, void *theParams, long theRefCon);
  52.